//
//  SQExtensionClass.h
//  ambition
//
//  Created by 苏青 on 2019/11/23.
//  Copyright © 2019 苏青. All rights reserved.
//

//#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "UIImageView+WebCache.h"

#import <sys/utsname.h>



@interface UIApplication(SQExtensionClass)
/*
 uid
 */
+(NSString *)SQObtain_uuid;
/*
 bundleId
 */
+(NSString *)SQObtain_bundleId;
/*
 bundleName
 */

+(NSString *)SQObtain_bundleName;
/*
 版本号
 */
+(NSString *)SQObtain_appVersion;

/* 文字判空*/
+ (NSString *)SQdislodgeSpace:(NSString *)str;

/**判断手机型号*/
+ (NSString *)getDeviceModel;


+ (NSString *)getUUID;
@end


//UIView
@interface UIView(SQView)
-(void)SQCornerRadius:(float)Radius;//圆角
-(void)SQCornerLineWidth:(float)Width LineColor:(UIColor *)color;//线边

@end

//UIColor
@interface UIColor(SQColor)

+(UIColor *)SQR:(CGFloat)red G:(CGFloat)green B:(CGFloat)blue A:(CGFloat)alpha;
+(UIColor *)SQhex:(NSString *)hex A:(CGFloat)alpha;
+(UIColor *)SQhex:(NSString *)hex;

@end


//UIImageView
@interface UIImageView(SQImageView)

-(void)SQ_setImageWithURL:(NSString *)url;
-(void)SQ_setImageWithURL:(NSString *)url placeholder:(NSString *)placeholder;
-(void)SQ_setImageWithURL:(NSString *)url placeholder:(NSString *)placeholder optionInfo:(SDWebImageOptions)options;
+(void)SQ_ImageClearCache;

@end

